package day20180129.designMode.two_Adapter.classAdapter;

/**
 * Created by 14394 on 2018/1/29.
 */
//类适配器，使用继承的适配器
    //具体实现，代表 “实际情况”
public class Banner {
    private String string;

    public Banner(String string) {
        this.string = string;
    }

    public void showWithParent(){//第一种
        System.out.println("("+string +")");
    }

    public void showWithAster(){//第二种
        System.out.println("*"+string+"*");
    }
}
